
import ReceiveMessage from "../message/ReceiveMessage";
import SendMessage from "../message/SendMessage";
import ServiceInfo from "../service/ServiceInfo";

export default interface MessageHandler  {

    encode(msg:SendMessage,serviceInfo:ServiceInfo):void;

    decode(bytes,protoID?:string|number):ReceiveMessage;

    getID(protoID):any;

    init():void;
}
